package com.web;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by tancw on 2017/7/19.
 */
@RestController
@RefreshScope
public class LuckWorkController {
    @Value("${project.env}") String debugVal;

    @RequestMapping("/show")
    public String show(){
        System.out.println(debugVal);
        return debugVal;
    }
}
